/**
 * @param {String} url
 */
function param2Obj(url) {
  console.log("路径地址解析", url);
  const search = decodeURIComponent(url.split("?")[1]).replace(/\+/g, "");

  if (!search) {
    return {};
  }

  const aearchArr = search.split("&");

  aearchArr.forEach((v) => {
    let index = v.indexOf("=");
    console.log("判断在indexof方法中index是什么", index);
  });

  const obj = {};
}
